/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: Administrator
 * Date: 2024-06-06
 * Time: 13:37
 */
public class Animal {
    public String name;
    public int age;
    public String color;

    public Animal(){

    }

    public Animal(String name){
        this.name = name;
    }

    public Animal(int age){
        this.age = age;
    }

    public Animal(String name,String color){
        this.name = name;
        this.color = color;
    }
    public void eat(){
        System.out.println(name + "正在吃粮");
    }

    public void swap(){
        System.out.println(name + "正在摇尾巴");
    }
}
